package com.blb.community.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.blb.community.pojo.ZyOwnerRoomRecord;

import java.util.List;

public interface ZyOwnerRoomRecordMapper extends BaseMapper<ZyOwnerRoomRecord> {
    // 查询审核记录表 并且分页

    Page<ZyOwnerRoomRecord> selectPage(Page page);
    // 查找当前业主的审核记录
    List<ZyOwnerRoomRecord> selectListByOwnerId(Long ownerId);
    // 根据id删除当前的记录
    void deleteByIdOfOwner(Long id);
    // 获取已绑定的记录信息
    List<ZyOwnerRoomRecord> selectBindingByOwnerId(Long ownerId);
}
